#include "Water.h"

size_t Water::mg_waters_id = 0;

Water::Water(const TVector3 i_position, THMapArea i_area, std::shared_ptr<Model3D> i_model)
  :m_position(i_position), m_area(i_area), m_model(i_model), m_id(mg_waters_id)
  {
  mg_waters_id++;
  }

std::string Water::GetName() const
  {
  return "WATER " + std::to_string(m_id);
  }

Model3D& Water::GetModel()
  {
  return *m_model;
  }

const Model3D& Water::GetModel() const
  {
  return *m_model;
  }

TVector3 Water::GetPosition() const
  {
  return m_position;
  }

const THMapArea& Water::GetArea() const
  {
  return m_area;
  }